{T "content","head",TPLID}
<div class="container login">
    <div class="verticalcenter">
        <div class="row">
            <div class="span7 rightline">
            <form action="" method="post" name="form-register" class="form-horizontal">
            	<div class="form-group">
					<label class="control-label">会员模型</label>
					<div class="col-sm-8">
					{loop $model $v}
					<input type="radio" name="modelid" value="{$v['modelid']}" {if $modelid == $v['modelid']}checked{else}onclick="location.href ='index.php?m=member&v=model&modelid={$v['modelid']}'"{/if} /> {$v['name']}
					{/loop}
					</div>
				</div>
				<?php
				if(is_array($formdata['0']))
				foreach($formdata['0'] as $field=>$info){
					if($info['powerful_field']) continue;
					if($info['formtype']=='powerful_field') {
						foreach($formdata['0'] as $_fm=>$_fm_value) {
							if($_fm_value['powerful_field']) {
								$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
							}
						}
						foreach($formdata['1'] as $_fm=>$_fm_value) {
							if($_fm_value['powerful_field']) {
								$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
							}
						}
					}
				?>
				<div class="form-group">
					<label class="control-label">{if $info['star']}<font color="red">*</font>{/if}{$info['name']}</label>
					<div class="col-sm-8">{$info['form']} {$info['remark']}</div>
				</div>
				<?php }?>
				<div class="form-group">
                    <label class="control-label"></label>
                    <input type="submit" name="submit" class="btn btn-login" value="确认提交" />
                </div>
				</form>            
            </div>
            <div class="span5">
                <div class="connectwebsite">
                    <h6>使用合作网站登录</h6>
                    <ul>
                        {if $this->setting['qq_appid']}<li><a href="index.php?m=member&f=index&v=auth&type=qq"><img src="{R}images/qqlogin.png" alt="使用QQ帐号登录" title="使用QQ帐号登录"></a></li>{/if}
						{if isset($this->setting['sina_key'])}<li><a href="{WEBURL}index.php?m=member&f=index&v=auth&type=sina"><img src="{R}images/weibologin.png" alt="使用微博帐号登录" title="使用微博帐号登录"></a></li>{/if}
						{if isset($this->setting['baidu_key'])}<li><a href="{WEBURL}index.php?m=member&f=index&v=auth&type=baidu"><img src="{R}images/baidulogin.png" alt="使用百度帐号登录" title="使用百度帐号登录"></a></li>{/if}
						<li><a href="#"><img src="{R}images/alipaylogin.png" alt="使用支付宝帐号登录" title="使用支付宝帐号登录"></a></li>
						<li><a href="#"><img src="{R}images/weichatlogin.png" alt="使用微信帐号登录" title="使用微信帐号登录"></a></li>
					</ul>
                </div>
            </div>
        </div>
    </div>
</div>
<link href="{R}css/validform.css" rel="stylesheet">
<script src="{R}js/validform.min.js"></script>
<script type="text/javascript">
$(function(){
	$(".form-register").Validform({
		tiptype:3
	});
});
</script>
{T "content","foot",TPLID}